ADP\BaseVersion\Includes\CartProcessor\CartCouponsProcessor D

Total Complexity 137
Dependencies 16
Dependents 0
Total lines 840
Lines of code 513
Logical lines of code 292
Comment lines 148
Methods 37
Properties 8

Methods 37

Method Rating Maintainability Complexity Lines of code
maybeRemoveOriginCoupons()
B
40 16 66
replaceWcNotice()
B
45 17 43
refreshCoupons()
A
44 16 42
prepareCouponsData()
A
44 14 44
applyCoupons()
A
43 13 50
getCouponData()
S
53 7 22
replaceNotices()
S
55 5 21
processPercentLimitCoupon()
S
53 5 21
getExactItemApplicationCouponDiscountAmount()
S
50 4 28
addSingleCoupon()
S
55 4 19
hookDisabledCouponsIsValidForCart()
S
59 4 14
sanitize()
S
62 3 11
addReadyCouponData()
S
61 2 12
getPercentLimitCouponDiscountAmount()
S
70 2 6
addGroupCoupon()
S
70 2 6
setFiltersToSupportExactItemApplicationOfReplacementCoupon()
S
64 2 10
purge()
S
68 1 8
purgeAppliedCoupons()
S
81 1 3
addOriginCoupons()
S
79 1 3
addRuleTriggerCoupons()
S
79 1 3
__construct()
S
77 1 4
addExactItemApplicationCouponDiscountType()
S
73 1 5
updateTotals()
S
71 1 7
addExactItemApplicationCouponCartType()
S
77 1 4
withContext()
S
81 1 3
addPercentLimitCouponProductType()
S
77 1 4
addPercentLimitCouponDiscountType()
S
73 1 5
unsetFilterToSuppressDisabledWcCoupons()
S
78 1 3
setFilterToSuppressDisabledWcCoupons()
S
78 1 3
unsetFiltersToSupportExactItemApplicationOfReplacementCoupon()
S
68 1 7
unsetFiltersToSupportPercentLimitCoupon()
S
70 1 6
setFiltersToSupportPercentLimitCoupon()
S
67 1 7
unsetFilterToInstallCouponsData()
S
78 1 3
setFilterToInstallCouponsData()
S
78 1 3
installActions()
S
73 1 6
init()
S
82 1 3
applyCouponsToWcCart()
S
67 1 8